package com.huluobo.kotlinim1907a.contract.register

import com.huluobo.kotlinim1907a.contract.BasePresenter

/**
 * Created by lc on 2022/1/12.
 */
interface RegisterContract {
    interface Presenter : BasePresenter {
        fun register(userName: String, password: String, confirmPassword: String)
    }

    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onConfirmPasswordError()
        fun onStartRegister()
        fun onRegisterSuccess()
        fun onRegisterFailed(message: String)
        fun onUserExist()//新增需求,用户已注册的回调
    }
}